package annotation_demo;

/**
 * @author ChenYongHao
 * @date 2023/5/4 11:50
 * @desc 创建自定义注解，MyTest.java
 */
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MyTest {
    public long timeout() default -1;
}
